package com.ruoyi.service;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.domain.*;

/**
 * 采购单管理Service接口
 * 
 * @author ruoyi
 * @date 2025-07-17
 */
public interface IErpPurchaseOrderManagementService  extends IService<ErpPurchaseOrderManagement>
{
    /**
     * 查询采购单管理
     * 
     * @param id 采购单管理主键
     * @return 采购单管理
     */
    public ErpPurchaseOrderManagement selectErpPurchaseOrderManagementById(String id);

    /**
     * 查询采购单管理列表
     * 
     * @param erpPurchaseOrderManagement 采购单管理
     * @return 采购单管理集合
     */
    public List<ErpPurchaseOrderManagement> selectErpPurchaseOrderManagementList(ErpPurchaseOrderManagement erpPurchaseOrderManagement);

    /**
     * 新增采购单管理
     * 
     * @param erpPurchaseOrderManagement 采购单管理
     * @return 结果
     */
    public int insertErpPurchaseOrderManagement(ErpPurchaseOrderManagement erpPurchaseOrderManagement);

    /**
     * 修改采购单管理
     * 
     * @param erpPurchaseOrderManagement 采购单管理
     * @return 结果
     */
    public int updateErpPurchaseOrderManagement(ErpPurchaseOrderManagement erpPurchaseOrderManagement);

    /**
     * 批量删除采购单管理
     * 
     * @param ids 需要删除的采购单管理主键集合
     * @return 结果
     */
    public int deleteErpPurchaseOrderManagementByIds(String[] ids);

    /**
     * 删除采购单管理信息
     * 
     * @param id 采购单管理主键
     * @return 结果
     */
    public int deleteErpPurchaseOrderManagementById(String id);

    List<ErpPurchaseOrderPurchaseVO> insertErpPurchase();



//    List<ErpPurchaseRequestManagement> findAllByIdBom( int id);




    Map<String, String> end(List<Integer> ids, String reason);


    Map<String, Integer> updateAudit(ErpPurchaseOrderManagement erpPurchaseRequestManagement);
    Map<String, Integer> submit(int id);
//
//    int rejectaudit(int id);

//    List<PurchaseDetailBom> selectmaterials();
//    List<PurchaseDetailBom> PurchaseDetailId(int id);
//    List<ApprovalRecord> jilu(Integer id);
//    int deleteDetailId(int id ,int wid);
//    public int deleteErpPurchaseRequestManagementById(String id);

    List<ErpPurchaseOrderPurchaseVO> orderwuliaoId(int id);

    List<ErpPurchaseOrderPurchaseVO> orderDetail(int id);

    public Map insertErpPurchaseRequestManagement(ErpPurchaseOrderManagement erpPurchaseOrderManagement);


    Map<String, String> handleorder(List<Integer> ids);

    int rejectaudit(int id);

    int updatesw(ErpPurchaseOrderManagement erpPurchaseOrderManagement);
}
